<script setup lang="ts">
defineProps(['title'])
</script>

<template>
  <div class="tourist">
    <div class="top">
      <div class="left">
        <span>{{ title }}</span>
        <img src="../../images/dataScreen-title.png" alt="" />
      </div>
      <div class="right">
        <slot name="extra"></slot>
      </div>
    </div>
    <div class="bottom">
      <slot name="bottom"></slot>
    </div>
  </div>
</template>

<style lang="scss" scoped>
.tourist {
  margin-bottom: 10px 0;
  color: white;
  width: 100%;
  height: 100%;
  .top {
    width: 100%;
    height: 100%;
    display: flex;
    background: url('../../images/dataScreen-main-lb.png') no-repeat
      center/cover;
    justify-content: space-between;
    .left {
      display: flex;
      flex-direction: column;
      span {
        margin: 10px 0;
        font-size: 20px;
      }
      img {
        width: 70px;
        height: 10px;
      }
    }
  }
  .bottom {
    color: red;
    background-color: red;
    width: 100px;
    height: 200px;
  }
}
</style>
